package com.study.services.impl;

import com.study.dao.StudentDao;
import com.study.pojo.Student;
import com.study.services.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * Created by bunny on 2017/8/30.
 */

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentdao;

    @Override
    public List<Student> findAll() {
        return studentdao.findAll();
    }

    @Override
    public Student find(String sid) {
        return studentdao.find(sid);
    }

    @Override
    public int update(Student student) {
        return studentdao.update(student);
    }

    @Override
    public int delete(String sid) {
        return studentdao.delete(sid);
    }

    @Override
    public int add(Student student) {
        return studentdao.add(student);
    }
}
